<?php

// $Id$

require_once($WSC->get_site_inc_dir().'modules/web_site_chocolate/chocolate_web_page_view.class.php');


class TCMS_Web_Page_View extends Chocolate_Web_Page_View {
	function __construct(Web_Page $page, $name = 'default', $pages_tpl_path = NULL) {
		parent::__construct($page, $name, $pages_tpl_path);

		if (!$pages_tpl_path) {
			$this->set_pages_tpl_path('db:modules/tangra_cms/oem/pages/');
		}
	}


	protected function compose_tpl_file_path() {
		$tpl_file_path = $this->get_pages_tpl_path().$this->get_subdir().$this->get_page_name().'.tpl';

		return $tpl_file_path;
	}
}
